package com.sharepics.services.android;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.List;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.sharepics.bean.Album;
import com.sharepics.db.AlbumDAO;
import com.sharepics.utils.bean.BeanUtils;
import com.sharepics.ws.client.WebServiceClient;
import com.thoughtworks.xstream.XStream;

public class SynchroAlbumService extends Service{

	@Override
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public int onStartCommand(Intent intent, int flags, int startId){
	
		AlbumDAO albumDAO = new AlbumDAO(this);	
		
		//RECUPERATION DES IMAGE NON ENVOYEES
		List<Album> albums = albumDAO.getAllNotSent();


		return START_STICKY ;	
	}
		
		
		
		
	


}
